home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_022 / lemacs / edef.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  4KB  |  99 lines

  1. /*    EDEF:        Global variable definitions for
  2.             MicroEMACS 3.2
  3.  
  4.             written by Dave G. Conroy
  5.             modified by Steve Wilhite, George Jones
  6.             greatly modified by Daniel Lawrence
  7. */
  8.  
  9. #ifdef    maindef
  10.  
  11. /* for MAIN.C */
  12.  
  13. /* initialized global definitions */
  14.  
  15. int     fillcol = 72;                   /* Current fill column          */
  16. short   kbdm[NKBDM] = {CTLX|')'};       /* Macro                        */
  17. char    pat[NPAT];                      /* Search pattern        */
  18. char    rpat[NPAT];            /* replacement pattern        */
  19. char    sarg[NSTRING] = "";        /* string argument for line exec*/
  20. int    eolexist = TRUE;        /* does clear to EOL exist    */
  21. int    revexist = FALSE;        /* does reverse video exist?    */
  22. char    *modename[] = {            /* name of modes        */
  23.     "WRAP", "CMODE", "SPELL", "EXACT", "VIEW", "OVER"};
  24. char    modecode[] = "WCSEVO";        /* letters to represent modes    */
  25. int    gmode = 0;            /* global editor mode        */
  26. int     sgarbf  = TRUE;                 /* TRUE if screen is garbage    */
  27. int     mpresf  = FALSE;                /* TRUE if message in last line */
  28. int    clexec    = FALSE;        /* command line execution flag    */
  29.  
  30. /* uninitialized global definitions */
  31.  
  32. int     currow;                 /* Cursor row                   */
  33. int     curcol;                 /* Cursor column                */
  34. int     thisflag;               /* Flags, this command          */
  35. int     lastflag;               /* Flags, last command          */
  36. int     curgoal;                /* Goal for C-P, C-N            */
  37. WINDOW  *curwp;                 /* Current window               */
  38. BUFFER  *curbp;                 /* Current buffer               */
  39. WINDOW  *wheadp;                /* Head of list of windows      */
  40. BUFFER  *bheadp;                /* Head of list of buffers      */
  41. BUFFER  *blistp;                /* Buffer for C-X C-B           */
  42. short   *kbdmip;                /* Input pointer for above      */
  43. short   *kbdmop;                /* Output pointer for above     */
  44.  
  45. BUFFER  *bfind();               /* Lookup a buffer by name      */
  46. WINDOW  *wpopup();              /* Pop up window creation       */
  47. LINE    *lalloc();              /* Allocate a line              */
  48.  
  49. #else
  50.  
  51. /* for all the other .C files */
  52.  
  53. /* initialized global external declarations */
  54.  
  55. extern  int     fillcol;                /* Fill column                  */
  56. extern  short   kbdm[];                 /* Holds kayboard macro data    */
  57. extern  char    pat[];                  /* Search pattern               */
  58. extern    char    rpat[];            /* Replacement pattern        */
  59. extern    char    sarg[];            /* string argument for line exec*/
  60. extern    int    eolexist;        /* does clear to EOL exist?    */
  61. extern    int    revexist;        /* does reverse video exist?    */
  62. extern    char *modename[];        /* text names of modes        */
  63. extern    char    modecode[];        /* letters to represent modes    */
  64. extern    KEYTAB keytab[];        /* key bind to functions table    */
  65. extern    NBIND names[];            /* name to function table    */
  66. extern    int    gmode;            /* global editor mode        */
  67. extern  int     sgarbf;                 /* State of screen unknown      */
  68. extern  int     mpresf;                 /* Stuff in message line        */
  69. extern    int    clexec;            /* command line execution flag    */
  70.  
  71. /* initialized global external declarations */
  72.  
  73. extern  int     currow;                 /* Cursor row                   */
  74. extern  int     curcol;                 /* Cursor column                */
  75. extern  int     thisflag;               /* Flags, this command          */
  76. extern  int     lastflag;               /* Flags, last command          */
  77. extern  int     curgoal;                /* Goal for C-P, C-N            */
  78. extern  WINDOW  *curwp;                 /* Current window               */
  79. extern  BUFFER  *curbp;                 /* Current buffer               */
  80. extern  WINDOW  *wheadp;                /* Head of list of windows      */
  81. extern  BUFFER  *bheadp;                /* Head of list of buffers      */
  82. extern  BUFFER  *blistp;                /* Buffer for C-X C-B           */
  83. extern  short   *kbdmip;                /* Input pointer for above      */
  84. extern  short   *kbdmop;                /* Output pointer for above     */
  85.  
  86. extern  BUFFER  *bfind();               /* Lookup a buffer by name      */
  87. extern  WINDOW  *wpopup();              /* Pop up window creation       */
  88. extern  LINE    *lalloc();              /* Allocate a line              */
  89.  
  90. #endif
  91.  
  92. /* terminal table defined only in TERM.C */
  93.  
  94. #ifndef    termdef
  95. extern  TERM    term;                   /* Terminal information.        */
  96. #endif
  97.  
  98.  
  99.